package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.MjBusinessAccountTime;
import org.tgcloud.group.web.controller.dto.businessAccount.BusinessAccountTimeDTO;

import java.util.List;

/**
* @Author: zhy
* @Created: 2024-07-30-下午1:21
* @Description: ${description}
*/
@Mapper
public interface MjBusinessAccountTimeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjBusinessAccountTime record);

    int insertSelective(MjBusinessAccountTime record);

    MjBusinessAccountTime selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjBusinessAccountTime record);

    int updateByPrimaryKey(MjBusinessAccountTime record);

    List<MjBusinessAccountTime> selectNoEndTimeByBusinessId(@Param("ids") String[] ids);

    int updateNoEndTimeByBusinessIds(@Param("ids") String[] ids);

    List<MjBusinessAccountTime> selectNoEndTimeByBusinessAccountId(@Param("ids") String[] ids);

    int updateNoEndTimeByBusinessAccountIds(@Param("ids") String[] ids);

    List<BusinessAccountTimeDTO> selectListByBusinessIdOrBusinessAccountId(@Param("businessId") Integer businessId,
                                                                           @Param("businessAccountId") Integer businessAccountId);

    List<MjBusinessAccountTime> selectEndTimeList();

    MjBusinessAccountTime selectNoEndTimeMsgByBusinessAccountId(@Param("businessAccountId") Integer businessAccountId);
}